﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCentents/Centents.Master" AutoEventWireup="true"
    CodeBehind="AddSchool.aspx.cs" Inherits="School.UserCentents.School" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script>
        function Check() {
            if (document.getElementById("ContentPlaceHolder1_txtName").value == "") {
                alert('学校名称不能为空');
                return false;
            }
            return true;
        }
    </script>
    <div id="MainBody">
        <!-- 右侧开始 -->
        <div class="mainHeader">
            <div class="itopic">
                <img src="../images/body_side_icon_qzadd.gif">添加学校学校</div>
            <div class="iclass">
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="mainBodyShow">
            <div id="upphoto">
                <table border="0" cellspacing="0" id="UploadPhoto">
                    <tbody>
                        <tr>
                            <td class="LabelTitle">
                                学校名称：
                            </td>
                            <td class="LabelShow">
                                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="LabelTitle">
                                学校简介：
                            </td>
                            <td class="LabelShow">
                                <asp:TextBox ID="txtJianjie" runat="server" TextMode="MultiLine" Width="580" Height="120"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="LabelTitle">
                                学校公告：
                            </td>
                            <td class="LabelShow">
                                <asp:TextBox ID="txtGongGao" runat="server" TextMode="MultiLine" Width="590" Height="320"></asp:TextBox>
                                <script src="../js/editor/kindeditor-min.js" type="text/javascript"></script>
                                <script type="text/javascript">
                                    KE.show({
                                        id: '<%=txtGongGao.ClientID %>',
                                        imageUploadJson: '<%=HttpContext.Current.Request.ApplicationPath %>/js/editor/asp.net/upload_json.ashx',
                                        fileManagerJson: '<%=HttpContext.Current.Request.ApplicationPath %>/js/editor/asp.net/file_manager_json.ashx',
                                        allowFileManager: true,
                                        afterCreate: function (id) {
                                            KE.event.ctrl(document, 13, function () {
                                                KE.util.setData(id);
                                                document.forms['aspnetForm'].submit();
                                            });
                                            KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
                                                KE.util.setData(id);
                                                document.forms['aspnetForm'].submit();
                                            });
                                        }
                                    });
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="LabelTitle">
                            </td>
                            <td class="LabelShow">
                                <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" OnClientClick="return Check()" />&nbsp;&nbsp;&nbsp;
                                <input id="Button2" type="button" value="返回" onclick="history.back();" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- 右侧结束 -->
    </div>
</asp:Content>
